package com.mxnet.chongjin.supoman.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * author: Administrator
 * email: lcj270018655@163.com
 * date: 2018/5/12
 */

public class EmailCheckUtils {
    public static boolean isNameAdressFormat(String email) {
        boolean isExist = false;

        Pattern p = Pattern.compile("\\w+@(\\w+.)+[a-z]{2,3}");
        Matcher m = p.matcher(email);
        boolean b = m.matches();
        if (b) {
            isExist = true;
        } else {

        }
        return isExist;
    }
}
